<data>
    <status><?php echo $status?></status>    
    <content><?//=$contents?>
    <?foreach($contents as $content){?>
    <user>
        <id><?php echo $content["id"]?></id>
        <name><?php echo $content["username"]?></name>        
    </user>
    <?}?>
    </content>        
</data>
